package cn.itsource.pethome.service;

import cn.itsource.pethome.domain.Department;
import cn.itsource.pethome.domain.Employee;
import cn.itsource.pethome.query.DepartmentQuery;
import cn.itsource.pethome.query.EmployeeQuery;
import cn.itsource.pethome.result.JSONResult;
import cn.itsource.pethome.result.PageList;

import java.util.List;

public interface EmployeeService {

    //根据ID查询部门信息
    Employee selectById(Long id);

    //查询所有部门信息（分页）
    PageList<Employee> pagelist(EmployeeQuery query);

    //查询所有部门信息（不分页）
    List<Employee> list();

    //保存或更新员工信息
    JSONResult saveOrUpdate(Employee employee);

    JSONResult deleteBatch(EmployeeQuery departmentQuery);
    JSONResult delete(Long id);
}
